package com.yildiz.ara.geomedikal;

import java.util.ArrayList;

public class ListItems {
	private ArrayList<String> names = new ArrayList<String>();
	private ArrayList<String> id = new ArrayList<String>();
	private ArrayList<String> orderId = new ArrayList<String>();

	public ArrayList<String> getNames() {
		return names;
	}

	public void setNames(String[] names, int index, String str) {

		switch (index) {
		case 1:
//			this.names.add(str);
			break;
		case 2:
			this.names.add(str);
			break;
		case 3:
			this.names.add(str);
			break;
		default:
			this.names.add(str);
			break;
		}
		for (int i = 0; i < names.length; i++) {
			this.names.add(names[i]);
		}
	}

	public ArrayList<String> getId() {
		return id;
	}

	public void setId(String[] id, int index) {
		switch (index) {
		case 1:
			
			break;
		case 2:
			this.id.add("-1");
			break;
		case 3:
			this.id.add("-1");
			break;
		default:

			break;
		}
		for (int i = 0; i < id.length; i++) {
			this.id.add(id[i]);
		}
	}

	public void clearListItems() {
		names.clear();
		id.clear();
		orderId.clear();
	}

	public ArrayList<String> getOrderId() {
		return orderId;
	}

	public void setOrderId(String[] id) {
		this.orderId.add("-1");
		for (int i = 0; i < id.length; i++) {
			this.orderId.add(id[i]);
		}
	}

}
